/**
 * 
 */
package com.study.proxy.cglib;

import org.springframework.cglib.core.DebuggingClassWriter;

/**
 * @author Administrator
 * @date 2019年6月4日
 */
public class App {

	public static void main(String[] args) {
		
		//cglig 不需要实现接口
		System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "D:\\logs");
		OrderServiceProxyFactory orderServiceProxyFactory = new OrderServiceProxyFactory(new OrderService());
		((OrderService) orderServiceProxyFactory.getProxyInstance()).save();
	}
}
